package persentation.presentDepartmentDean;

import java.awt.Font;
import java.awt.Graphics;
import java.awt.Image;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

import po.userPO.DepartmentDeanPO;
import vo.userVO.DepartmentDeanVO;

public class DepartmentDeanBottomPanel extends JPanel {
	private static final long serialVersionUID = 1L;
	private static Image PAGE=new ImageIcon("Graphics/departmentDean/封面.png").getImage();
	public DepartmentDeanBottomPanel(DepartmentDeanVO deanPO) {

		setSize(900,500);
		setLayout(null);
		
		JLabel lblNewLabel_1 = new JLabel(deanPO.getDepartmentId());
		lblNewLabel_1.setFont(new Font("微软雅黑", Font.PLAIN, 20));
		lblNewLabel_1.setBounds(349, 58, 278, 23);
		add(lblNewLabel_1);
		
		JLabel lblNewLabel_2 = new JLabel(deanPO.getName());
		lblNewLabel_2.setFont(new Font("微软雅黑", Font.PLAIN, 20));
		lblNewLabel_2.setBounds(194, 58, 123, 23);
		add(lblNewLabel_2);
		
		JLabel label = new JLabel("欢迎院系教务老师：");
		label.setFont(new Font("微软雅黑", Font.PLAIN, 20));
		label.setBounds(24, 10, 197, 35);
		add(label);
	}
	
	public void paintComponent(Graphics g){
		g.drawImage(PAGE, 0, 10, null);
	}
}
